<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>修改图书</title>
    <style>
        body {
            padding: 0;
            margin: 0;

        }

        .add-book-container {
            width: 300px;
            height: 500px;
            background: antiquewhite;
            border-radius: 2%;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            position: absolute;
            display: flex;
            flex-direction: column;

        }

        .add-book-title {
            font-size: 1em;
            text-align: center;
            height: 50px;
            line-height: 50px;
        }

        .add-book-item {
            height: 35px;
            display: flex;
            justify-content: center;
            align-items: center;
            border-bottom: 1px black dashed;
        }

        .add-book-item input {

        }

        .add-book-submit {
            height: 35px;
            display: flex;
            justify-content: center;
            align-items: center;
        }
    </style>
</head>
<body>
<div class="add-book-container">
    <div class="add-book-title">
        修改书籍
    </div>
    <form action="/book/update/{{ book.id }}" method="POST">
        <div class="add-book-item">
            <label id="title">标题：</label><input type="text" readonly value="{{ book.title }}" disabled name="title">
        </div>
        <div class="add-book-item">
            <label id="price">价格：</label><input type="number" value="{{ book.price }}" disabled name="price">
        </div>
        <div class="add-book-item">
            <label id="marketPrice">市场价：</label><input type="number" value="{{ book.market_price }}" name="marketPrice">
        </div>
        <div class="add-book-item">
            <label id="pubHouse">出版社：</label><input type="text" value="{{ book.pub_house }}" disabled name="pubHouse">
        </div>
        <div class="add-book-item">
            <label id="pubDate">出版时间：</label><input type="date" value="{{ book.pub_date |date:'Y-m-d' }}" disabled name="pubDate">
        </div>
        <div class="add-book-submit">
            <button>提交</button>
        </div>
    </form>
    {% if status %}
        <div class="add-book-title">
            {{ status }}
        </div>
    {% endif %}

</div>
</body>


</html>